package com.ldc.common.utils;

import android.app.Activity;
import android.content.Intent;

public class IntentUtils {


    public static Intent getIntent(Activity activity) {
        if (null == activity) {
            return null;
        }
        return activity.getIntent();
    }

    public static String getString(Activity activity, String key) {
        String value = getIntent(activity).getStringExtra(key);
        return StringUtils.isEmpty(value) ? "" : value;
    }
}
